package com.example.pro1.service.zhao.wxpay;

import java.io.IOException;
import java.util.Map;

public interface WxPayService {
    //关单
    int cancelOrder(String order_no) throws Exception;
    //支付返回二维码url
    Map<String, Object> nativePay(long productId,String chargeWay,long userId,Integer fee,String num,String beizhu,String addressId) throws Exception;
    //接受支付信息异步回调后的数据处理
    void processOrder(Map<String,Object> resource);
    //主动查询订单--不为controller服务为TAsk服务
    String queryOrder(String order_no) throws IOException;
    //TAsk服务 维护订单
    void checkOrderStatu(String order_no) throws IOException;
    // 退款
    void refund(String orderNo) throws Exception;
    //接受退款信息异步回调后的数据处理
    void processRefund(Map<String,Object> resource);
    //主动查询退款
    String queryRefund(String orderNo) throws Exception;
    //TAsk服务 维护退款
    void checkRefundStatu(String order_no) throws Exception;

}
